import request from '@/utils/request';

// 员工购卡列表
export const buycardList = params => request({
    url: '/business/employee/buycard/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 员工购卡新增
export const buycardAdd = params => request({
    url: '/business/employee/buycard/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 员工购卡详情
export const buycardDetail = params => request({
    url: '/business/employee/buycard/get',
    method: 'GET',
    params
});
// 获取推广卡信息
export const buycardCardInfo = params => request({
    url: '/business/employee/buycard/getCardInfo',
    method: 'GET',
    params
});
// 二维码支付
export const qrCodePay = params => request({
    url: '/business/qrCode/pay',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 退卡
export const backCard = params => request({
    url: '/business/employeeBackCard/backCard',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 员工购卡导出
export const buycardExport = params => request({
    url: '/business/employee/buycard/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// ---------------员工退卡 -------------
// 退卡列表
export const backCardList = params => request({
    url: '/business/employeeBackCard/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 退卡列表导出
export const backCardExport = params => request({
    url: '/business/employeeBackCard/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// ---------------患者退卡 -------------
// 患者退卡列表
export const patientList = params => request({
    url: '/business/patient/buyCard/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者退卡导出
export const patientExport = params => request({
    url: '/business/patient/buyCard/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者退卡
export const patientBackCard = params => request({
    url: '/business/patient/buyCard/back',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
